<script>
	import '../app.css'
	import Sidebar from '$lib/Sidebar.svelte'
	import { onMount } from 'svelte'
	import { initializeKlineTableConfStore } from '$lib/FudaStore'

	// 在应用启动时调用 initializeKlineStore
	onMount(async () => {
		await initializeKlineTableConfStore()
	})
</script>

<div class="flex w-full h-full">
	<div class="flex-none w-16 h-full min-h-full">
		<Sidebar />
	</div>
	<div class="grow ml-0 h-full bg-red-400 relative overflow-x-auto">
		<slot />
	</div>
</div>
